<template>
  <h2>
    你好，{{userInfo.user_name}}
  </h2>
</template>

<script>
export default {
  name: 'Home',
  components: {
  },
  data() {
    return {
        userInfo: {
          user_name: '',
        }
      }
  },
  async mounted() {
    const response = await this.$http.get('http://webcast.bytedance.com/api/get_user_info')
    this.userInfo = response.data

  }
}
</script>
